<template>
  <layout-body-tabs :tabs="headTab" v-model="tabActiveName" heightFil @change="changeTab">
    <mateFiles ref="mateFilesRef"></mateFiles>
  </layout-body-tabs>
</template>
<script lang="ts" setup>
import mateFiles from "@/components/mate/files/list.vue";
import { omit } from "lodash";
import { onMounted, ref, getCurrentInstance } from "vue";

const { proxy } = getCurrentInstance() as any

const headTab = ref([
  {
    name: "图片列表",
    value: 1,
  }
]);

const tabActiveName: any = ref(1);

const changeTab = (tab: number | string) => {
  tabActiveName.value = tab;
};

const mateFilesRef = ref<HTMLElement>()

onMounted(()=>{
  proxy?.$refs['mateFilesRef']?.open();
})

</script>
